From f4965964d34314d8c4d490c8f95a3f50710660be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 16 Apr 2026 18:35:57 +0200 Subject: [PATCH] mpris: Only expose the players that can play In mpris we only emit "player-added" for players that can actually play, but during NotificationBox and MessageList initialization we add them all, including those not having being technically added. And this may be a problem when locking the screen, since we do not want players to show if they cannot play. So, be consistent and expose publicly only the players that can play Part-of: --- js/ui/mpris.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 1ab2d4037..44efbd64e 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -204,7 +204,7 @@ export const MprisSource = GObject.registerClass({ } get players() { - return [...this._players.values()]; + return [...this._players.values()].filter(player => player.canPlay); } _addPlayer(busName) { -- 2.39.5